package com.dhcc.sds.base.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.base.entity.SdsIndexHeaderEntity;

import java.util.List;
import java.util.Map;

/**
 * 单病种指标统计配置服务层接口
 *
 * @ClassName: ISdsIndexHeaderService
 * @Description: TODO
 * @author zhangdc
 * @date 2021-09-03 11:14:53
 */
public interface ISdsIndexHeaderService extends IBaseService<SdsIndexHeaderEntity> {

    List<SdsIndexHeaderEntity> page(Page<SdsIndexHeaderEntity> page, Map<String, Object> map);
    List<SdsIndexHeaderEntity> list(Map<String, Object> map);

    List<ZTreeNode> getIndexHeaderTree(Long entityId, Integer indexType);

    List<Map<String, Object>> selectIndexHeader(Map<String, Object> params);

    void importIndexHeader(List<List<Object>> indexAll, Long entityId);

    void importIndexItem(List<List<Object>> indexItemAll, Long entityId);

    List<SdsIndexHeaderEntity> getParentIndexHeader(Map<String, Object> map);

    JSONObject getAnalysisCaseDic(Map<String, String> params);

    String getTitleByField(Long entityId, Integer indexType, String field);
}
